<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="bondCompanyList.title"/></title>
    <meta name="menu" content="BondCompanyMenu"/>
</head>

<c:if test="{'$'}{not empty searchError}">
    <div class="alert alert-danger alert-dismissable">
        <a href="#" data-dismiss="alert" class="close">&times;</a>
        <c:out value="{'$'}{searchError}"/>
    </div>
</c:if>
<section class="content-header">
    <h1>
        <fmt:message key="bondCompanyList.heading"/>
        <small><fmt:message key="bondCompanyList.message"/></small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i><fmt:message key="bondCompanyList.heading"/></a></li>
        <li class="active"> <fmt:message key="bondCompanyList.heading"/></li>
    </ol>
</section>
<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <%@ include file="/common/messages.jsp" %>
            <div class="box">
                <div class="box-header">
                    <div id="actions" class="btn-group margin">
<form method="get" action="${ctx}/bondCompanies" id="searchForm" class="form-inline">
<div id="search" class="text-right">
    <span class="col-sm-9">
        <input type="text" size="20" name="q" id="query" value="${param.q}"
               placeholder="<fmt:message key="search.enterTerms"/>" class="form-control input-sm"/>
    </span>
    <button id="button.search" class="btn btn-default btn-sm" type="submit">
        <i class="icon-search"></i> <fmt:message key="button.search"/>
    </button>
</div>
</form>
                    </div>
                </div><!-- /.box-header -->
                <div class="box-body">
                    <div id="actions" class="btn-group">

    <a href='<c:url value="/bondCompanyform"/>' class="btn btn-primary">
        <i class="icon-plus icon-white"></i> <fmt:message key="button.add"/></a>
    <a href='<c:url value="/home"/>' class="btn btn-default"><i class="icon-ok"></i> <fmt:message key="button.done"/></a>
</div>

<display:table name="bondCompanyList" class="table table-condensed table-striped table-hover" requestURI="" id="bondCompanyList" export="true" pagesize="25">
    <display:column property="name" sortable="true" href="bondCompanyform" media="html"
        paramId="id" paramProperty="id" titleKey="bondCompany.name"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="bondCompany.id"/>
    <display:column property="bondUser.username" sortable="true" titleKey="admin.username"/>
    <display:column property="bondUser.name" sortable="true" titleKey="dealer.contactPerson"/>
    <display:column property="bondUser.phoneNumber" sortable="true" titleKey="dealer.contactNumber"/>
    <display:column property="bondUser.email" sortable="true" titleKey="user.email"/>
    <display:column sortable="false" titleKey="bondCompany.autoAudit">
        <input type="checkbox" disabled="disabled" <c:if test="${bondCompanyList.autoAudit}">checked="checked"</c:if>/>
    </display:column>
    <display:column sortable="false" titleKey="bondCompany.slaveProvider">
        <input type="checkbox" disabled="disabled" <c:if test="${bondCompanyList.slaveProvider}">checked="checked"</c:if>/>
    </display:column>
    <display:column sortable="false" titleKey="bondCompany.masterProvider">
        <input type="checkbox" disabled="disabled" <c:if test="${bondCompanyList.masterProvider}">checked="checked"</c:if>/>
    </display:column>
    <display:column property="parent.name" sortable="true" titleKey="bondCompany.parent"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="bondCompanyList.bondCompany"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="bondCompanyList.bondCompanies"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="bondCompanyList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="bondCompanyList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="bondCompanyList.title"/>.pdf</display:setProperty>
</display:table>
                    </div>
                </div>
            </div>
        </div>
    </section>
